// 引入mock模块,Mock是个对象要大写
import Mock from 'mockjs'

// 把json文件数据引进来
// json文件默认暴露
import banner from './banner.json'
import floor from './floor.json'

//调用mock函数,参数:请求地址,请求数据
//轮播图mock
Mock.mock("/mock/banner", { code: 200, data: banner })
// 家用电器mock
Mock.mock("/mock/floor", { code: 200, data: floor })